package com.hsgene.product.service.api.impl;

import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.product.service.api.AgencyService;
import com.hsgene.supplier.domain.GeneticTestingAgency;
import com.hsgene.supplier.dto.GeneticTestingAgencyDto;
import org.springframework.stereotype.Component;

/**
 * @author wangbing
 * @version 1.0, 2018/12/12
 */
@Component
public class AgencyServiceImpl implements AgencyService {
    @Override
    public ApiResult saveAgency(GeneticTestingAgency geneticTestingAgency) {
        return ApiResult.fail(CommonErrorCode.SUPPLIER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult updateAgency(GeneticTestingAgency geneticTestingAgency) {
        return ApiResult.fail(CommonErrorCode.SUPPLIER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult getList(String orderBy, Boolean isAsc, int pageNo, int pageSize, String name, Boolean isAll) {
        return ApiResult.fail(CommonErrorCode.SUPPLIER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<GeneticTestingAgencyDto> getAgencyById(String id) {
        return ApiResult.fail(CommonErrorCode.SUPPLIER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult deleteAgenecy(String id) {
        return ApiResult.fail(CommonErrorCode.SUPPLIER_SERVICE_NOT_AVAILABLE);
    }
}
